#include <iostream>
#include "Head.h"
using namespace std;

int main()
{
	MyHeap::Heap h(100);
	for (int i = 20; i > 0; i--)
	{
		h.insert(i);
	}
	h.Print();
	cout << h.GetSize() <<endl;
	auto arr = h.sort();
	for (int i = 0; i < 20; i++)
	{
		cout << arr[i] << " ";
	}

	return 0;
}